/*
 * @Description: 标准库flag 长短项
 * @Author: franktrue 807615827@qq.com
 * @Date: 2021-07-27 08:11:58
 * @LastEditTime: 2021-07-27 08:19:40
 */
package main

import (
	"flag"
	"log"
)

func main() {
	var name string
	flag.StringVar(&name, "name", "Go语言编程之旅", "帮助信息")
	flag.StringVar(&name, "n", "Go语言编程之旅", "帮助信息")
	flag.Parse()

	log.Printf("name: %s", name)
}
